title: C# How can I Cast/Convert a IEnumerable<IGrouping<object, object>> to another type?
body: <p>So, I am trying to cast the following variable:</p>
  
  <pre><code>IEnumerable&lt;IGrouping&lt;object, object&gt;&gt; GroupedValues;
  </code></pre>
  
  <p>To this:</p>
  
  <pre><code>IEnumerable&lt;IGrouping&lt;int, int&gt;&gt; GroupedValues;
  </code></pre>
  
  <p>I have tried using Cast and also</p>
  
  <pre><code>Convert.ChangeType(GroupedValues, typeof(int));
  </code></pre>
  
  <p>but if It doesn't seem like a valid conversion if I compare it with a <code>IEnumerable&lt;IGrouping&lt;int, int&gt;&gt;</code> variable;</p>