typeIndex() {
	        if (this.handle == 0) {
	            throw Error("The current Object has already been disposed");
	        }
	        const stack = this.lib.getOrAllocCallStack();
	        const outOffset = stack.allocPtrArray(1);
	        const outPtr = stack.ptrFromOffset(outOffset);
	        this.lib.checkCall(this.lib.exports.TVMObjectGetTypeIndex(this.getHandle(), outPtr));
	        const result = this.lib.memory.loadU32(outPtr);
	        this.lib.recycleCallStack(stack);
	        return result;
	    }
get the type index of the object