Currently I am using withColumn like below.
df_To_Cast.withColumn("ContractID", col("ContractID").cast(\'long\')) \\ .withColumn(&