You can do that, the issues comes in that the collection you could assign both types into is PartModule. Or the even less helpful IEngineStatus. you would then have to cast them back to Engine or EngineFX. Im pretty sure every modder hates this right now. It is a pain to the MechJeb guys. a pain in kOS.