Set<T> set = new HashSet<T>(); set.addAll( list ); return set;
List<?> list = new ArrayList<Date>(); Set<?> set = listToSet( list );