Reply to luke, > Hi everybody > > auto factory = &Factory; > auto ifactory = cast(FactoryType)factory; this is the issue here, an interface isn't quite the same as object reference. having a function that returns an object reference cast to a interface returning function doesn't work.