def _check_value(value):
    """Convert the provided value into a boolean, an int or leave it as it."""
    if str(value).lower() in ["true"]:
        value = True
    elif str(value).lower() in ["false"]:
        value = False
    elif str(value).isdigit():
        value = int(value)
    return value