title: Transform and convert a List to Set with Guava
body: <p>Is there a simple way to <strong>convert</strong> and <strong>transform</strong> a List to Set with Guava?</p>
  
  <p>I'd like to use method:</p>
  
  <pre class="lang-java prettyprint-override"><code>Set&lt;To&gt; result = Sets.transformToSet(myList, new Function&lt;From, To&gt;() {
              public To apply(From item) {
                  return convert(item);
              }
          });
  </code></pre>
  
  <p>this is my code, with "tempCollection"</p>
  
  <pre class="lang-java prettyprint-override"><code>Collection&lt;To&gt; tempCollection = Collections2.transform(myList, new Function&lt;From, To&gt;() {
              public To apply(From item) {
                  return convert(item);
              }
          });
  Set&lt;To&gt; result = newHashSet(tempCollection );
  </code></pre>