cast()
cast(mixed $value, \Cake\Database\Type|string $type) : array
Converts a give value to a suitable database value based on type and return relevant internal statement type
Parameters
mixed | $value | The value to cast |
\Cake\Database\Type|string | $type | The type name or type instance to use. |
Returns
array —list containing converted value and internal type