title: typescript, ts-morph module, is there access to underlying `ts.SourceFile` instance from a `ts-morph.SourceFile` instance?
body: <p>I am trying out the <code>ts-morph</code> npm module to replace some code which I have already written but which overlaps <code>ts-morph</code> and is inferior.  Nevertheless, I have some existing functions that take an <code>ts.Node</code> type arguments, mostly for exploration and discovery, which I need to use for reference while trying out <code>ts-morph</code>.</p>
  <p>However, I can't see a way to access the underlying <code>ts.Node</code> instance from a <code>ts-morph.SourceFile</code> instance - there are no <code>ts-morph</code> functions with return type of <code>ts.Node</code> or <code>ts.TypeChecker</code>.</p>
  <p>This doesn't work</p>
  <pre><code>      (sourceFile as unknown) as ts.SourceFile,
        (checker as unknown) as ts.TypeChecker,
  </code></pre>
  <p>because, for starters, <code>(sourceFile as unknown) as ts.SourceFile</code> doesn't have a <code>kind</code> member.</p>
  <p>Is there a way access the underlying <code>ts.Node</code> instance from, e.g., <code>ts-morph.SourceFile</code>?</p>