Use enum for object types