public static function doCast($castTypeOperator, $value)
    {
        if (!isset(self::$castTypeMap[$castTypeOperator])) {
            throw new PinqException('Cast operator \'%s\' is not supported', $castTypeOperator);
        }

        settype($value, self::$castTypeMap[$castTypeOperator]);

        return $value;
    }
public static function doCast($castTypeOperator, $value)
    {
        if (!isset(self::$castTypeMap[$castTypeOperator])) {
            throw new PinqException('Cast operator \'%s\' is not supported', $castTypeOperator);
        }

        settype($value, self::$castTypeMap[$castTypeOperator]);

        return $value;
    }
public static function doCast ( $ castTypeOperator , $ value ) { if ( ! isset ( self :: $ castTypeMap [ $ castTypeOperator ] ) ) { throw new PinqException ( 'Cast operator \'%s\' is not supported' , $ castTypeOperator ) ; } settype ( $ value , self :: $ castTypeMap [ $ castTypeOperator ] ) ; return $ value ; }
Performs the cast operation on the supplied value.

@param string $castTypeOperator
@param mixed  $value

@return mixed
@throws PinqException
Performs the cast operation on the supplied value .