title: Convert java.util.Set to scala.collection.Set
body: <p>How can I convert a java.util.Set[String] to a scala.collection.Set with a generic type in Scala 2.8.1?</p>
  
  <pre><code>import scala.collection.JavaConversions._
  
  var in : java.util.Set[String] = new java.util.HashSet[String]()
  
  in.add("Oscar")
  in.add("Hugo")
  
  val out : scala.collection.immutable.Set[String] = Set(in.toArray : _*)
  </code></pre>
  
  <p>And this is the error message</p>
  
  <pre><code>&lt;console&gt;:9: error: type mismatch;  
  found   : Array[java.lang.Object]
  required: Array[_ &lt;: String]   
  val out : scala.collection.immutable.Set[String] = Set(javaset.toArray : _*)
  </code></pre>
  
  <p>What am I doing wrong?</p>