title: In Kotlin, what does "::class.simpleName" do?
body: <p><code>val var1: Any = &quot;Carmelo Anthony&quot;</code></p>
  <p>I'm under the impression <code>::class.simpleName</code> returns the variable type of an object<br />
  when I do the following:</p>
  <p><code>val var1Type = var1::class.simpleName</code><br />
  <code>print(var1Type)</code></p>
  <p>I get <code>String</code> and not <code>Any</code></p>
  <p>but when I do this</p>
  <p><code>val var2: String = var1</code></p>
  <p>I get a <code>Type mismatch: inferred type is Any but String was expected</code></p>