Instead of the ancient “(typename) thingy” use:
In a hurry:
dynamic_cast<typename>(thingy)”but such usage usually is a failure to architect the hierarchy properly, you should fix the hierarchy when time permits.
In all cases these latter are superior to C’s original format as they wrap parens around what is being cast, making for easier reading. Casting with the exception of reinterpret_casts actually does involve a function call, the source might as well reflect that.