Generated user-defined functions for distinct types
Generated user-defined functions for distinct types (also called cast functions) are functions that DB2® automatically generates when a distinct type is created using the CREATE TYPE statement.
Cast functions support casting from the distinct type to the source type and from the source type to the distinct type. The ability to cast between the data types is important because a distinct type is compatible only with itself.
The generated cast functions reside in the same schema as the distinct type for which they were created. The schema cannot be SYSIBM.