avoid an unnecessary cast by using Class<?> instead of Class