title: Linq selecting items that exist in both list
body: <p>I have 2 list:</p>
  
  <pre><code>myObject object1 = new myObject(id = 1, title = "object1"};
  myObject object2 = new myObject(id = 2, title = "object2"};
  myObject object3 = new myObject(id = 3, title = "object3"};
  
  //List 1
  List&lt;myObject&gt; myObjectList = new List&lt;myObject&gt;{object1, object2, object3};
  
  //List 2
  List&lt;int&gt; idList = new List&lt;int&gt;{2, 3};
  </code></pre>
  
  <p>Is there a way using Linq to pull only the objects in the first list that exist in the second list so that I am left with:</p>
  
  <pre><code>{object2, object3}
  </code></pre>
  
  <p>I looked at intersect but it seems that this will only work if both list are of the same type.</p>
  
  <p>Any help would be greatly appreciated.</p>
  
  <p>Thanks.</p>