Passint UINTERFACE as method arg

Hi, I’ve written an interface that will act as the base of a series of objects that implement different behaviour. I also have a factory class that (should) take this interface as an argument, and create some object based on the data passed in.

However, something in the unreal engine system makes this a little too un-obvious for me, as it complains about: TScriptInterface not being myclass (I’m passing in myclass*).

With unreal’ system, how would I go about doing it this way? I need: MyMethod( MyInterface *data ), and then being able to pass in MyMethod( myDerivedInstance )

Regards,
Oyvind