Identity 3.0 Getting a user by id when the id is "int"
<p>I have had a look around for answers on this for Identity 3.0 and found little regarding getting a single user that has an int id.</p>

<p>I have an asp.net-core mvc6 project in which I have converted all users and roles with string id's to have integer ids.</p>

<p>Fine. that works.  I have a UserAdminController with among other things an update or Edit action which passes an "int?" for the id. </p>

<pre><code>public async Task&lt;IActionResult&gt; Edit(int? id)
</code></pre>

<p>In my service I want to get the user associated with the integer id... "1".</p>

<p>I wanted to use UserManger.FindByIdAsync(id) to get the user with that id.</p>

<p>The problem is, this requires a "string" id not an "int" id.</p>

<p>Using UserManger (if I can) how do I return a user with an integer and not a string id? there must be an elegant way to return a user?</p>