how do i group a List<int> and return a List<int>
<p>I have a list of ints. I want to group the list and create a new list that contains only the grouped by number that meets a certain condition. this is what i have so far. the declarating for membersList is List</p>

<pre><code>int rows = 5;

List&lt;int&gt; memberKeys = memberKeysList
  .GroupBy(x =&gt; x)
  .Where(x =&gt; x.Count() == rows)
  .ToList();
</code></pre>

<p>Its complaining about converting from groupedby list to a list.</p>