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;
    }