def cast_integer_filter(value):
    """Cast an integer filter value.

    Theses are usually booleans in Python but they need to be sent as
    1s and 0s to the API.

    :param value: boolean value that needs to be casted to an int
    """
    return int(value)