title: Cannot implicitly convert type 'System.Collections.Generic.IEnumerable<Domain.User>
body: <blockquote>
  Compile time error:
  "Cannot implicitly convert type 'System.Collections.Generic.IEnumerable' to 'Domain.User'.
  An explicit conversion exists (are you missing a cast?)"
  </blockquote>
  
  <pre><code>User newUser = uow.UserRepository.Get(u =&gt; u.FirstName == "Joah");
  </code></pre>
  
  <p>Then I get a runtime error if I add a cast:</p>
  
  <blockquote>
  "Unable to cast object of type 'System.Collections.Generic.List`1[Domain.User]' to type 'Domain.User'."
  </blockquote>
  
  <pre><code>User newUser = (User)uow.UserRepository.Get(u =&gt; u.FirstName == "Joah");
  </code></pre>
  
  <p>If I use "var" I see the object being returned but I need to cast it as "User" :-(</p>
  
  <p>Why this happens?</p>