How to convert List<string> to List<int>?
<p>My question is part of this problem:  </p>

<p>I recieve a collection of id's from a form. I need to get the keys, convert them to integers and select the matching records from the DB.  </p>

<pre><code>[HttpPost]
public ActionResult Report(FormCollection collection)
{
    var listofIDs = collection.AllKeys.ToList();  
    // List&lt;string&gt; to List&lt;int&gt;
    List&lt;Dinner&gt; dinners = new List&lt;Dinner&gt;();
    dinners= repository.GetDinners(listofIDs);
    return View(dinners);
}
</code></pre>
