title: Store type in variable to use like a type later
body: <p>I'm trying to store a type in a variable so that I can use it like a 1st class type later on. </p>
  
  <pre><code>class SomeModel {}
  
  let someType = SomeModel.self
  let array = Array&lt;someType&gt;()
  </code></pre>
  
  <p>In this case sure I could have done <code>Array&lt;SomeModel&gt;()</code> instead but I want to generalize it and let subclasses provide the value of <code>someType</code>.</p>
  
  <p>However I get errors like <code>someType isn't a type</code> or <code>use of undeclared type 'someType'</code> on the last line.</p>