title: How can I Cast Multiple columns in Pyspark using fold or Map Function?
body: <p>Currently I am using withColumn like below.</p>
  <pre><code>df_To_Cast.withColumn(&quot;ContractID&quot;, col(&quot;ContractID&quot;).cast('long')) \
          .withColumn(&quot;SNK_ContractNumber&quot;, col(&quot;SNK_ContractNumber&quot;).cast('string'))
  </code></pre>