private static Class<?> getClassFromType(Type t) {
      if (t instanceof Class<?>) {
        return (Class<?>) t;
      } else if (t instanceof ParameterizedType) {
        ParameterizedType pt = (ParameterizedType) t;
        return (Class<?>) pt.getRawType();
      }
      return null;
    }
Convert parameters for the method if needed.
ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDFUtils.java