GetTypes method in TypeUtil