I have an alphanumeric field in an RDD of type AnyRef. Case1: If it\'s 99898, I want to cast it as Long Case2: If it\'s 0099898, I want to cast it as String Case3: If it\'s