ClassCastException in reconnect methods of C-API
The generated reconnect methods cast node types to their C-API pendants, although this does not work for super types because the C-API types do not reflect the type hierarchy.
Example
For node SomeOtherNode extends SomeNode { ... }
a method reconnectTarget(SomeNode target)
is created for edges. In this the type SomeNode is hard casted to CSomeNode. However, if the runtime type of 'target' is 'SomeOtherNode' this cast fails. Dispatch methods would help here.