caching object types