def as_data(self, other):
    """
    Convert other to a compatible data type.
    """
    if isinstance(other, list):
        return other
    elif isinstance(other, type(self)):
        return other._data
    elif isinstance(other, tuple):
        return list(other)
    return other