title: Get class of boxed type from class of primitive type
body: <p>If I have value:</p>
  
  <pre><code>val i: Int = 1
  </code></pre>
  
  <p>I can get its class:</p>
  
  <pre><code>&gt; i.getClass
  res1: Class[Int] = int
  </code></pre>
  
  <p>and class of boxed value:</p>
  
  <pre><code>&gt; i.asInstanceOf[AnyRef].getClass
  res2: Class[_ &lt;: AnyRef] = class java.lang.Integer
  </code></pre>
  
  <p>The question is how to get class of boxed type from class of any primitive type without having a value, for example it should return <code>Class[java.lang.Integer]</code> for <code>Class[Int]</code>, <code>Class[java.lang.Float]</code> for <code>Class[Float]</code> and so on?</p>
  
  <p>I mean this kind of function:</p>
  
  <pre><code>def boxedClass[T]: Class[AnyRef] = ...
  </code></pre>