A pointer to IDispatch is converted to a LuaCOMobject whose implementation is provided by this pointer. A LuaCOMobject is converted to COM simply passing its interface implementation to COM.