add test class hierarchy with single inheritance
edited error in inheritance structure
Moved visitor::cast to visitor::rtti::cast

Moved cast into rtti namespace
changed and added tests for cast