I am applying a method and it is giving error because the cast is not well done
How could I cast all fields in a more efective way, use withColumn just one time and t