The following complies but at run time throws an exception. What I am trying to do is to cast a class PersonWithAge to a class of Person. How do I do this and what is the wo
Make PersonWithAge inherit from Person.
Like this:
class PersonWithAge : Person { public int Age { get; set; } }