small mistake in the comments corrected
added a method for converting a list of types as a list of classes