Dynamic cast failed

In reply to peter:

You cannot cast a base class variable to an extended class variable when the base class variable does not contain a type compatible object. extend.b would not exist. Please review the link I gave you in your previous question.