Passing Python object to C# component in Grasshopper

I have a custom Grasshopper plugin built in Visual Studio using OOP in C#, which provides a dll.

I am now using GhPython to reference the dll and create an instance of one of the C# classes.

The question is: what is the best way to pass the instance of the class that is output from the GhPython component back to one of the existing components from the original dll? There seems to be an issue with the object wrapper.

Any feedback would be greatly appreciated!