I'm currently trying to write an intention that converts a node of a concept (let's call it X) to a node of a different concept (let's call it Y and let Y be an extension of concept X).
As far as I understand, conversion should be possible since Y has at least all properties etc. that X has. However, I've tried to simply cast the node with the colon operator ...
node<Y> replacement = node:Y;
If I do so, the workbench throws a "NodeCastException: Can't cast node: ...". Though this was somehow expected (referring to the Java world), I wonder how to get this conversion running. Of course, I could simply copy all the things to a freshly created node of concept Y but this is ugly.
Thanks in advance for your hints!