PySpark referenceClassesColumnastypeOn this pageastype Alias for cast(). Syntax Pythonastype(dataType) Parameters ParameterTypeDescriptiondataTypeDataType or strTarget data type Returns Column