Caster
Corex\Database\Casts\Caster · class · Core layer
Casts a value to its PHP type on hydrate and to a storable scalar on persist. Pure. Supported types: int, bool, string, decimal/float, array/json, datetime. A malformed JSON value hydrates to an empty array (non-fatal).