title: Arrays.asList: when a set is used as the argument we get back a list<set<Integer>> instead of List<Integer>
body: <pre><code>Set&lt;Integer&gt; iset = new HashSet&lt;&gt;();
  iset.add(1);
  List&lt;Integer&gt; ilist =  Arrays.asList(iset);
  </code></pre>
  
  <p>My intention was to convert the set of integers into a list of integers but the compiler complains that a List> cannot be converted to a List. Why does asList work this way and when would one use it? What is the correct way to convert a Set to List?</p>