title: Conversion of collection to int array
body: <p>I want to display a graph and for displaying that i need integer values.I get this from my code</p>
  
  <pre><code>    Collection c = Sort.values();
  </code></pre>
  
  <p>Is there any way that i convert collection in such a way that i get integer values?i get this when i print the collection c</p>
  
  <pre><code>    [64770, 26529, 13028, 848, 752, 496]
  </code></pre>