title: LINQ - An explicit conversion exists (are you missing a cast?)
body: <p>This is my first LINQ query and I have following error</p>
  
  <blockquote>
    <p>Cannot implicitly convert type
    '<code>Microsoft.LightSwitch.IDataServiceQueryable&lt;LightSwitchApplication.LettersSentItem&gt;</code>'
    to '<code>System.Linq.IQueryable&lt;LightSwitchApplication.LettersSentItem&gt;</code>'.
    An explicit conversion exists (are you missing a cast?)</p>
  </blockquote>
  
  <pre><code>partial void PatientReminders_PreprocessQuery(ref IQueryable&lt;LettersSentItem&gt; query)
  {
      query = from Ltr in PatientsLettersSentDetails
              where Ltr.ResponseTime &gt; 28
              select Ltr;
  }
  </code></pre>