title: How to determine if an object is an inherited from a certain class in Kotlin?
body: <p>In the test:</p>
  
  <pre><code>if(v is BaseModel)
  </code></pre>
  
  <p>will assert true if v is a direct instance of type BaseModel but will 
  assert false if v is not a direct instance of type BaseModel but is inherited from BaseModel. Would it be nice if Kotlin has a keyword that will assert true if there is a keyword 'is from' such that the test </p>
  
  <pre><code>if(v is from BaseModel)
  </code></pre>
  
  <p>will assert true if v's class is inherited from BaseModel.</p>
  
  <p>But how do Kotlin resolve this currently?</p>