Typecast T to Class.
Class<T>
whether to return the primitive type of T if it is a primitive type, default is true.