How to assign an ienumerable object to a list in C#
<p>I have a method(method A) that returns an Ienumerable object.</p>

<p>The object is a datacontract class that has the following fields:</p>

<pre><code>Id
TotalViews
</code></pre>

<p>I have another method(method B) that call calls Method A</p>

<p>Method A has the following:</p>

<pre><code>List&lt;string&gt; response;

response = ExecuteRequest(uri).Select(d =&gt; new {d.Id, d.TotalViews }).ToList();
</code></pre>

<p>I trying to assign the ienumerable object to a list.</p>

<p>The above does not work as I get errors.</p>

<blockquote>
  <p>Error</p>
  
  <p>cannot implicitly convert type system.collections.generic.list to system.collections.generic.list</p>
</blockquote>

<p>How do I assign all the Ienumerable object to a list?</p>
