title: Problems converting Set of Integers to int[] array
body: <p>I have no problems converting a Set of Strings to a string[] array, but I'm having problems doing so with converting a Set of Integer to an int[] array.
  How can I convert the Integers to its primitive?</p>
  
  <p>I cannot seem to find any related questions. Any quick suggestions that can help?</p>
  
  <p>Sometimes, autoboxing cannot be used, as in the case of arrays. I don't think an array of integers will automatically be converted to an array of ints.</p>