title: Gwt elemental2: How can I convert between a gwt JavaScript object, and a JsInterop object?
body: <p>Lets say I have a <code>com.google.gwt.dom.client.Document gwtDocument</code> node and I want to convert it to a <code>elemental2.dom.Document</code>?</p>
  
  <p>Since Document extends JavaScriptObject I assumed I could do something like:</p>
  
  <pre><code>elemental2.dom.Document elementalDoc = (elemental2.dom.Document)(gwtDocument);
  </code></pre>
  
  <p>However the elemental2 classes using jsinterop don't extend JavaScriptObject. So how do I convert between the two?</p>
  
  <p>Thanks!</p>