title: Get a user claim in asp.net mvc 4 razor view
body: <p>How can I get a claim, given its type, of the current authenticate user in a Razor view?</p>
  
  <p>I tried a few options, such as the following, but with no success:</p>
  
  <pre><code>(ClaimsPrincipal)User.Identity).FindFirst(ClaimTypes.NameIdentifier); }
  </code></pre>
  
  <p>Thank You,
  Miguel</p>