filter objects by type