Method __cast() Method __cast mixed __cast(mixed val, string|type type_name) Description Cast val to the type indicated by type_name. See also lfun::cast()