Obey generic types of method parameters