title: Filter list to remove non numeric items
body: <p>I am using the following controller method to grab the id's of all selected items in my Grid.Mvc, however I am noticing I am getting not only the id's of the selected items, but also a <code>"false"</code> for each row, which obviously I don't want.</p>
  
  <p>I have put together the following code smell to leave me with just the id's so that I can do my thing however is there a better way of doing this, at the very least is there a way of filtering out the non numeric list items rather than my existing method which is hardcoding true/false:</p>
  
  <pre><code>//POST
  [HttpPost]
  [ActionName("Index")]
  public ActionResult IndexPost(FormCollection collection)
  {
      var selectedIds = collection.GetValues("selectedAddressesIds");
      List&lt;string&gt; myList = new List&lt;string&gt;();
  
      myList = selectedIds.ToList();
      myList.RemoveAll(x =&gt; (x == "false") || (x == "true")); 
  
      if (myList != null )
      {
          foreach (var id in myList)
          {
              // do what you want with the selected id.
          }
      }  
  
      return View();
  }
  </code></pre>