title: Can you cast an object to a class dynamically?
body: <p>I would like to cast an object based on one of it's fields, the field would have the right value for the object.</p>
  
  <p>for example</p>
  
  <pre><code>object as object.class
  </code></pre>
  
  <p>object.class would be equivalent to a class, like Int or any other kotlin class.</p>
  
  <p>is it possible?</p>