title: Convert Child Class to Base Class for XML Serialization?
body: <p>I have a base class <code>StandardMeasurement</code> and a derived class <code>CustomMeasurement</code> both of which can be serialized. </p>
  
  <p>Here is what I want to do:</p>
  
  <ol>
  <li>Load a <code>CustomMeasurement</code> from file to <code>customMeasInstance</code>.</li>
  <li>Create new std. meas. s.t.: <code>StandardMeasurement stdMeas = (StandardMeasurement)customMeasInstance</code>.</li>
  <li>Serialize <code>stdMeas</code> (only) as a <code>StandardMeasurement</code> type. </li>
  </ol>
  
  <p>I get an error when trying because <code>stdMeas</code> is still considered a <code>CustomMeasurement</code> by the XML serializer. Is there a way I can do this or do I have to "copy" over all the info manually?</p>
  
  <p>Thanks!</p>