protected function process($value, string $type)
    {
        if ($type === 'integer') {
            return (int) $value;
        }

        if ($type === 'float') {
            return (float) $value;
        }

        if ($type === 'boolean') {
            return (bool) $value;
        }

        return (string) $value;
    }
protected function process($value, string $type)
    {
        if ($type === 'integer') {
            return (int) $value;
        }

        if ($type === 'float') {
            return (float) $value;
        }

        if ($type === 'boolean') {
            return (bool) $value;
        }

        return (string) $value;
    }
protected function process ( $ value , string $ type ) { if ( $ type === 'integer' ) { return ( int ) $ value ; } if ( $ type === 'float' ) { return ( float ) $ value ; } if ( $ type === 'boolean' ) { return ( bool ) $ value ; } return ( string ) $ value ; }
Process native type

@param  mixed  $value
@param  string $type
@return mixed
Process native type