title: Cannot implicitly convert type 'Int' to 'T'
body: <p>I can call <code>Get&lt;int&gt;(Stat);</code> or <code>Get&lt;string&gt;(Name);</code></p>
  
  <p>But when compiling I get:</p>
  
  <blockquote>
    <p>Cannot implicitly convert type 'int' to 'T'</p>
  </blockquote>
  
  <p>and the same thing for <code>string</code>.</p>
  
  <pre><code>public T Get&lt;T&gt;(Stats type) where T : IConvertible
  {
      if (typeof(T) == typeof(int))
      {
          int t = Convert.ToInt16(PlayerStats[type]);
          return t;
      }
      if (typeof(T) == typeof(string))
      {
          string t = PlayerStats[type].ToString();
          return t;
      }
  }
  </code></pre>