Input string was not in a correct format error on using int keys
<p>First i want to assure you that i have already read many posts with similar title on SO. </p>

<p>I have created an ASP.NET MVC project and changed the keys of template tables to int following this article</p>

<p><a href="http://www.asp.net/identity/overview/extensibility/change-primary-key-for-users-in-aspnet-identity" rel="noreferrer">http://www.asp.net/identity/overview/extensibility/change-primary-key-for-users-in-aspnet-identity</a></p>

<p>But i am getting a runtime error in this line of StartUp.Auth.cs</p>

<pre><code>getUserIdCallback: (id) =&gt; (id.GetUserId&lt;int&gt;()))
</code></pre>

<p>Error = System.FormatException: Input string was not in a correct format. Any help is appreciated.</p>