title: scala.collection.JavaConversions$SeqWrapper cannot be cast to java.util.Set
body: <p>I have this cypher query:</p>
  
  <pre><code>start s1=node:__types__(className="xxx.domain.Soc") 
  match (s1)-[:SIMILAR*]-(s2) 
  with s1, count(s2) as number, collect(s2) as liste 
  RETURN s1, liste 
  order by number desc
  </code></pre>
  
  <p>Using spring data, I want to cast the result to an object which has 2 fields :</p>
  
  <pre><code>class Bean{
      private Soc soc;
      private Set&lt;String&gt;;
      //getters and setters
  }
  </code></pre>
  
  <p>I was able to convert the node s1 to Soc but I'm getting this error when I cast the collect(s2) to Set :</p>
  
  <pre><code>java.lang.ClassCastException: scala.collection.JavaConversions$SeqWrapper cannot be cast to java.util.Set
  </code></pre>
  
  <p>I'm not sure how to convert it?</p>