title: Convert object to another
body: <p>I have a class which is part of an assembly i'm referencing.
  I want to convert Object of that type
  to my own class that implements the class i'm referencing</p>
  
  <p>Lets say my reference has </p>
  
  <pre><code>public class customer
  {
  public string name {get;set}
  public string address{get;set}
  }
  </code></pre>
  
  <p>and i've created</p>
  
  <pre><code>public class mycustomer : customer
  {
   public string name {get; set}
   public string address{get;set}
   public string email {get;set}
  }
  </code></pre>
  
  <p>How do i convert customer to mycustomer and back
  I've read about using reflections, but i'm not comfortable enough with it, to actually write it myself.</p>
  
  <p>PS. please stop with the naming convention semantics - this is a rough on the fly theoretical example (not bothering with naming conventions here, only in actual code)
  Thanks in advance</p>
  
  <p>Edit: just figured out i cannot do this anyway.
  i need to serialize an object with doesnt have the serializable attribute, and i thought i could just mirror that class and make it serializable - but i just realised that some of the properties inside this class doesn't have the serializable attribute.</p>
  
  <p>so thanks anyway - i'll mark best answer to the question as answer
  /Alex</p>