How to work around the can't cast from parent to child issue
<p>i have read about the reason why you can't cast a parent to a child: you can't cast an ANIMAL to a DOG; it might be a CAT.</p>

<p>But here is my issue: </p>

<p>i receive a data object from my datalayer with 50 properties. Now i created a child object of this object, with only one more property.</p>

<p>And in my function, i want to fill all the 51 properties of my object with the 50 of the base object, and the one extra.</p>

<p>So i'm looking for a way to 'copy' the 50 properties of the parent object to the child object.</p>

<p>Is there a way to do it?</p>
