src/Bundle/Common/Bag/ValueBag.php
public function fetchBool(string $key, bool $default = false): bool
    {
        return $this->fetchFilter($key, $default, FILTER_VALIDATE_BOOLEAN);
    }
public function fetchBool(string $key, bool $default = false): bool
    {
        return $this->fetchFilter($key, $default, FILTER_VALIDATE_BOOLEAN);
    }
Get parameter value converted to boolean.

@param string $key
@param bool|false $default The default value if parameter does not exist
@return mixed