def string_to_bool(value):
    """Recast a str representation of a Boolean to bool.

    Parameters
    ----------
    value : |str|
        The value to convert (e.g., 'false').

    Returns
    -------
    |bool|
        The Boolean value of `value`.

    Notes
    -----
    If `value` is not 'true', 'True', 'false', or 'False', the function
    simply converts the string to its Boolean value.

    Examples
    --------
    >>> string_to_bool('true')
    True

    >>> string_to_bool('False')
    False

    >>> string_to_bool('0')
    True

    >>> string_to_bool(0)
    False

    """
    if value in ['true', 'True']:
        return True
    elif value in ['false', 'False']:
        return False
    else:
        return bool(value)