PHP TypeLang Help

MixedType

Infers the type of the passed value and applies the appropriate conversion rules according to the inferred type.

$mixed->match(42, ...); // bool(true)

// When normalizing, it will infer a type // dependent on the value $mixed->cast(42, ...); // int(42) // For example, similar to using "int" type $int->cast(42, ...); // int(42)
06 November 2025