Mongolid\DataMapper\SchemaMapper::cast PHP Метод

cast() защищенный Метод

Uses PHP's settype to cast a value to a type.
См. также: http://php.net/manual/pt_BR/function.settype.php
protected cast ( mixed $value, string $type ) : mixed
$value mixed Value to be casted.
$type string Type to which the $value should be casted to.
Результат mixed
    protected function cast($value, string $type)
    {
        settype($value, $type);
        return $value;
    }