title: Cannot implicitly convert type 'System.Linq.IQueryable
body: <p>I wrote the following compiled query:</p>
  
  <pre><code>public static Func &lt; Modal.Entities, string, IQueryable &lt; Modal.Staff &gt; &gt;
          MyQuery = CompiledQuery.Compile((Modal.Entities U, string StaffNo) =&gt; U.Staff.Where(a =&gt; a.StaffNo == StaffNo));
  </code></pre>
  
  <p>and used the following statement to invoke the compiled query:</p>
  
  <pre><code>Modal.Staff abc = MyQuery(context, StaffNo);
  </code></pre>
  
  <p>But I got the following error:</p>
  
  <blockquote>
    <p>Cannot implicitly convert type 'System.Linq.IQueryable ' to 'Modal.Staff'. An explicit conversion exists (are you missing a cast?)</p>
  </blockquote>
  
  <p>Can somebody help me?</p>