Use enum/uint16_t for object types