Duplicate of C++ var "casting" by name!. Thread closed.