title: Convert Hashtable elements to List
body: <p>I have this</p>
  
  <p>hashtable has a </p>
  
  <pre><code>key "ids" and its values are [1,2,3]
  
  List&lt;long&gt; ids= (List&lt;long&gt;)hashtable["ids"];
  </code></pre>
  
  <p>an error occurs when trying to cast. It says </p>
  
  <pre><code>Unable to cast object of type 'Newtonsoft.Json.Linq.JArray' to type 'System.Collections.Generic.List`1[System.Int64]'.
  </code></pre>
  
  <p>I've been stuck for hours, any suggestions?</p>