title: Kotlin extension function start activity with Intent extras
body: <p>I am trying to write a kotlin extension function for Context which will start a new activity in android with given class name and list of intent extras. I am able to successfully start activity without any extras but I am facing problem with them.</p>
  
  <pre><code>fun &lt;T&gt; Context.openActivity(it: Class&lt;T&gt;, pairs: List&lt;Pair&lt;String, Any&gt;&gt;) {
    var intent = Intent()
    pairs.forEach {
       intent.putExtra(it.first, it.second)
    }
    startActivity(intent)
  }
  </code></pre>
  
  <blockquote>
    <p>Main issue here is -> intent.putExtra() doesn't except second param as
    Any</p>
  </blockquote>