generics - contravariance inf filter types (allow filters for any
supertype of the element type)