title: Abstract classes with automapper
body: <p>I have a base class:</p>
  
  <pre><code>public abstract class User
  {
      /* properties */
  }
  
  public class Teacher : User
  {
  
  }
  
  public class Student : User
  {
  
  }
  </code></pre>
  
  <p>Then I want to map my view model to one of these child class base on a property:</p>
  
  <pre><code>public enum UserType
  {
      Teacher,
      Student
  }
  
  public class UserVM
  {
      /* Properties of User */
      public UserType UserType {get; set;}
  }
  </code></pre>
  
  <p>Based on UserVM.UserType, I'd like to map to the related child class:</p>
  
  <pre><code>userModel.UserType = UserType.Teacher;
  //user will be of type Teacher
  var user = Mapper.Map&lt;UserVM, User&gt;(userModel);
  </code></pre>
  
  <p>How do I setup my <code>CreateMap</code> configurations for this?</p>