cast
Changes the type argument of the DataFrame instance without changing its contents.
Related operations: Adjust schema
Parameters:
verify: Boolean = false— whentrue, the function throws an exception if theDataFrameinstance doesn't match the given schema. Otherwise, it just changes the format type without actual data checks.
Use this operation to change the formal type of a DataFrame instance to match the expected schema and enable generated extension properties for it.
To convert DataFrame columns to match given schema, use convertTo operation.
Reusing implicitly generated schema
In notebooks, dataframe types are implicitly generated.

This type can be referred to, but its name will change whenever you re-execute cells. Here how you can do it in a more robust way: