I want to create a very generic utility method to take any Collection and convert it into a Collection of a user selectable class that extends from Number (Long, Double, Flo
Looks good to me.
Since you have the Class token, why not avoid the unchecked cast and thus suppress warnings?
retVal = clazz.cast(Double.valueOf(from));