title: .Net Conversion error CS0029 and CS0266 when trying to assign class
body: <p>This question was raised by my son, and I could not give a precise answer.</p>
  <p>We get an error when converting/mapping 2 identical classes but in a different namespace.
  I have created 1 class Astronaut and put the class in 2 different namespaces.</p>
  <p>When you try to assign c = a we get this error?
  This is a very basic example, the real issue happens with 2 classes that have multiple classes inside and would be complex to write a mapper for.</p>
  <p>For the record I fixed this using Automapper, just wanted to know the actual reason why this is not working.</p>
  <pre><code>using Apollo;
  using Challenger;
  void Main()
  {
      var a = new Apollo.Astronaut();
      var b = new Challenger.Astronaut();
      // Cannot implicitely convert type 'Challenger.Astronaut' to 'Apollo.Astronaut'     
      var c = a;
          
      c = b; 
  }
  
  namespace Apollo{
      public class Astronaut
      {
          public string FirstName { get; set; }
          public string LastName { get; set; }
      } 
  }  
  
  namespace Challenger{
       public class Astronaut
       {
           public string FirstName { get; set; }
           public string LastName { get; set; }
       }
   }
  </code></pre>