Cannot implicitly convert type 'System.Collections.Generic.IEnumerable' to 'System.Web.Mvc.ActionResult'
<p>I am playing around with ASP.NET MVC5 Identity and trying to implement claims based authentication.</p>

<p>I get the following error:</p>

<blockquote>
  <p>Cannot implicitly convert type 'System.Collections.Generic.IEnumerable&lt;&lt;anonymous type: string subject, string type, string value>>' to 'System.Web.Mvc.ActionResult'. An explicit conversion exists (are you missing a cast?)   </p>
</blockquote>

<p>This is the piece of code:</p>

<pre><code>public ActionResult GetClaims()
{
    var identity = User.Identity as ClaimsIdentity;
    var claims = from c in identity.Claims
                 select new
                 {
                     subject = c.Subject.Name,
                     type = c.Type,
                     value = c.Value
                 };
    return claims;
}
</code></pre>

<p>I am following an example from <a href="http://bitoftech.net/2015/03/31/asp-net-web-api-claims-authorization-with-asp-net-identity-2-1/" rel="nofollow">http://bitoftech.net/2015/03/31/asp-net-web-api-claims-authorization-with-asp-net-identity-2-1/</a></p>