Allow multiple types for a list of objects