title: how to assign enum to viewmodel property?
body: <p>main classes:</p>
  
  <pre><code>public enum FooType
  {
    Red,
    Green,
    Blue
  }
  
  public class Foo
  {
    public int Id { get; set; }
    public FooType Type { get; set; }
    public string FooName { get; set; }
  }
  </code></pre>
  
  <p>View models:</p>
  
  <pre><code>public class FooVM
  {
    public FooType Type { get; set; }
    public string FooName { get; set; }
  }
  </code></pre>
  
  <p>Now, I want to select the one's I want using Linq</p>
  
  <pre><code>_fooService.All().Select(x =&gt; new FooVM
               {
                 FooName = x.FooName,
                 Type = x.Type, // I'm having trouble with this guy. Says I cannot implicitly convert it.
                }
          );
  </code></pre>
  
  <p>The error I'm getting is:</p>
  
  <blockquote>
    <p>Cannot implicitly convert type 'Namespace.Type' to 'Namespace.ViewModel.Type'. An explicit conversion exist (are you missing a cast?)</p>
  </blockquote>
  
  <p>I'm having an issue of converting it. But I have no idea what should be done. What am I missing? Any help would be much appreciated. Thanks</p>