EditControllerEx1 heritates from EditController and adds support of IUnitInfo (which extends IEditController)
If you need to support IUnitInfo interface (which is highly recommanded, expecially for parameters structure):
auto controller = plugProvider->getController ();
FUnknownPtr<IUnitInfo> unitInfo (controller);
if (unitInfo)