title: How to convert List<AnonymousType> to List<string>
body: <p>I want to convert a <code>List&lt;AnonymousType&gt;</code> to <code>List&lt;string&gt;</code>. I have the following code:</p>
  
  <pre><code>var lkpiTodisplay = _MGMTDashboardDB.KPIs.Where(m =&gt; m.Compulsory == true &amp;&amp; m.Active == true)
                                           .Select(m =&gt; new
                                           {
                                               KPI_Name = m.Absolute == true ? m.KPI_Name : (m.KPI_Name + "%")
                                           }).ToList();
  
  for(int i=1; i&lt;= BusinessTargetCol; i++)
  {
     lkpiTodisplay.Add(new
     {
        KPI_Name = "Business Target"
     });
  }
  </code></pre>
  
  <p>This code creates a <code>List&lt;AnonymousType&gt;</code>. Then I would like to assign this List to a variable <code>List&lt;string&gt;</code>, as shown in the following code:</p>
  
  <pre><code>DashboardViewModel lYTMDashboard = new DashboardViewModel()
  {
        KPIList = (List&lt;string&gt;) lkpiTodisplay,
        //other assignments
  };
  </code></pre>
  
  <p>The casting does not work. How can I convert the variable? Other solutions that modify the first code snippet are welcome, as long as the <strong>KPIList</strong> variable is kept as a <code>List&lt;string&gt;</code>.</p>
  
  <p>Thanks</p>
  
  <p>Francesco</p>