src/TypeCastValue.php
protected static function prepareNumericCast($value)
    {
        if (!in_array(gettype($value), static::$numericCastable, true)) {
            return '';
        }
        if (is_string($value)) {
            return trim($value);
        }
        return $value;
    }
protected static function prepareNumericCast($value)
    {
        if (!in_array(gettype($value), static::$numericCastable, true)) {
            return '';
        }
        if (is_string($value)) {
            return trim($value);
        }
        return $value;
    }
protected static function prepareNumericCast ( $ value ) { if ( ! in_array ( gettype ( $ value ) , static :: $ numericCastable , true ) ) { return '' ; } if ( is_string ( $ value ) ) { return trim ( $ value ) ; } return $ value ; }
Return empty string in case the type is not castable to a numeric data type
and trim the value.
@param mixed $value
@return string|float|int|bool
Return empty string in case the type is not castable to a numeric data type and trim the value .