title: Operator '=' is not defined for types 'Integer' and 'IQueryable(Of Integer)'
body: <p>This is giving me a headache. I have this link query here that grabs an ID</p>
  
  <pre><code>Dim mclassID = From x In db.SchoolClasses Where x.VisitDateID = _visitdateID Select x.ClassID
  </code></pre>
  
  <p>And then later on I have this linq query </p>
  
  <p><code>ViewData("Staff") = From t In db.Staffs Where t.ClassID = mclassID Select t</code></p>
  
  <p>Any help would be much appreciated. I've tried quite a few things but to no avail. I've attempted casting, converting, Is operand, etc.</p>