def METHOD_NAME(value: Union[str, bool, int]) -> bool:
    """
    Convert a str to a boolean. If this is not possible or the value is false return false.
    :param value: The value to convert to boolean.
    :return: True if the value is in the following list, otherwise false: "true", "1", "on", "yes", "y" .
    """
    if not isinstance(value, (str, bool, int)):
        raise TypeError(
            "The value handed to the input_boolean function was not convertable due to a wrong type "
            f"(found: {type(value)})!"
        )
    value = str(value).lower()
    return value in ["true", "1", "on", "yes", "y"]