public static function boolval($value)
    {
        deprecationWarning('Type::boolval() is deprecated.');
        if (is_string($value) && !is_numeric($value)) {
            return strtolower($value) === 'true';
        }

        return !empty($value);
    }
public static function boolval($value)
    {
        deprecationWarning('Type::boolval() is deprecated.');
        if (is_string($value) && !is_numeric($value)) {
            return strtolower($value) === 'true';
        }

        return !empty($value);
    }
public static function boolval ( $ value ) { deprecationWarning ( 'Type::boolval() is deprecated.' ) ; if ( is_string ( $ value ) && ! is_numeric ( $ value ) ) { return strtolower ( $ value ) === 'true' ; } return ! empty ( $ value ) ; }
Type converter for boolean values.

Will convert string true/false into booleans.

@param mixed $value The value to convert to a boolean.
@return bool
@deprecated 3.1.8 This method is now unused.
Type converter for boolean values .