A filter that supports generics