Define GetTypes method to IContext