title: Convert C# Hashtable value to List
body: <p>I am sending a post request from Javascript to C#</p>
  
  <p>Javascript</p>
  
  <pre><code>var name = "doe";
  var ids = [1,2,3];
  
  var parameter = {
  ids : ids,
  name : name,
  groups: groups
  }
  </code></pre>
  
  <p>C#</p>
  
  <pre><code>public string sampleMethod (Hashtable hashtable)
  {
  string name = hashtable["name"].toString();//works well
  List&lt;long&gt; ids = (List&lt;long&gt;)hashtable["ids"];//doesnt work
  }
  </code></pre>
  
  <p>I just want to get the values [1,2,3] from hashtable["ids"] then convert it to long;</p>