In TCling_* you can assume that the type of gCling is TCling (we already do that in many places ... see ((TCling*)gCling)