I tried that before but I got the cast wrong: (TCling*)gCling->. Now with ((TCling*)gCling) it works. Sorry about the noise