title: Kotlin: Equivalent of getClass() for KClass
body: <p>In Java we can resolve a variable's class through <code>getClass()</code> like <code>something.getClass()</code>. In Kotlin I am aware of <code>something.javaClass</code> which is nice but I want to be able to get the <code>KClass</code> in a similar way. I've seen the <code>Something::class</code> syntax but this is not what I need. I need to get the KClass of a variable. Does such functionality exist?</p>