Add getTypeClass method to return type value class.