How to get an Interface from a Class instance

Hi

I have a class MyClass which inherits from interface IMyClass.

I have created an instance of MyClass as follows: Dim mc As New MyClass

How can I get a pointer to the IMyClass interface that corresponds to the instance mc?

I need this because I need to pass IMyClass as an argument to a function.

(Note that MyClass and IMyClass are actually .NET classes that I imported into Xojo (Insert ActiveX component).

Thanks,
Ralph

Just pass it to the function, no need for anything special.