object orientation cast

  1. brendan.hill

    Question OO question: how to cast from a base class to a derived class?

    OK I know this isn't supposed to be possible, because you can't be sure the object is really of the derived class (can't cast a mammal as a cat because it might be a dog, etc). The thing is, I have a legitimate need to achieve this somehowand see no problem in this circumstance. I'm writing a...