title: How to get class of Any? variable in Kotlin?
body: <p>I want my <code>equals</code> to compare class too and I wrote</p>
  
  <pre><code>    override fun equals(other: Any?): Boolean {
          return this::class == other::class &amp;&amp; ...
  
      }
  </code></pre>
  
  <p>unfortunately it swears</p>
  
  <pre><code>Expression in a class literal has a nullable type 'Any?', use !! to make the type non-nullable
  </code></pre>
  
  <p>But I want to compare with <code>null</code>s too. What about glorious "null safety"? They forgot it for reflection? I didn't find <code>?::</code> operator or something.</p>