Hi @Echulion,
Your problem looks similar to the one in this post. You may be missing an explicit cast to KeplerianOrbit here.
Quoting Petrus:
Does that solve your issue ?