def cast(value):
    """Cast appropriately: a sequence to a tuple, otherwise as a str."""
    if isinstance(value, (list, tuple, set)):
        return tuple(value)
    else:
        return str(value),
