title: Cast a very long string as an integer or Long Integer in PySpark
body: <p>I'm working with a string column which is 38 characters long and is actually numerical.</p>
  
  <p>for e.g. id = '678868938393937838947477478778877.....' ( 38 characters long). </p>
  
  <p>How do I cast it into a long integer ? I have tried cast function with IntegerType, LongType and DoubleType and when i try to show the column it yields Nulls. </p>
  
  <p>The reason I want to do this is because I need to do some inner joins using this column and doing it as String is giving me Java Heap Space Errors.</p>
  
  <p>Any suggestions on how to cast it as a Long Integer ? { This question tries to cast a string into a Long Integer }</p>