def intersection(list1, list2):
    """
    Compute and return the elements common to list1 and list2.
    
    `list1` and `list2` can be sets, lists, or pandas.Series.
    """
    return list(set(list1).intersection(set(list2)))