snowflake.snowpark.Column.cast¶
- Column.cast(to: Union[str, DataType], rename_fields: bool = False, add_fields: bool = False) Column [source] (https://github.com/snowflakedb/snowpark-python/blob/v1.33.0/src/snowflake/snowpark/column.py#L990-L1007)¶
Casts the value of the Column to the specified data type. It raises an error when the conversion can not be performed.