typecastValue() protected method
Casts the given value to the specified type.
protected mixed typecastValue ( $value, $type ) | ||
---|---|---|
$value | mixed |
Value to be type-casted. |
$type | string|callable |
Type name or typecast callable. |
return | mixed |
Typecast result. |
Please login to continue.