title: Store array of int into claims with AddClaims
body: <p>I want to put an array of int in one of my claims on a web application .net core 2.2.</p>
  
  <p>When logging in to create the ticket I use this to add claims, but how to add a complex object.</p>
  
  <pre><code>if (ticket.HasScope(OpenIdConnectConstants.Scopes.Profile))
  {
      if (!string.IsNullOrWhiteSpace(user.FirstName))
          identity.AddClaim(CustomClaimTypes.FirstName, user.FirstName, OpenIdConnectConstants.Destinations.IdentityToken);
  
      if (!string.IsNullOrWhiteSpace(user.LastName))
          identity.AddClaim(CustomClaimTypes.LastName, user.LastName, OpenIdConnectConstants.Destinations.IdentityToken);
      if (user.Functions.Any())
          // not possible : Functions = List&lt;int&gt;
          identity.AddClaim(CustomClaimTypes.Functions, user.Functions, OpenIdConnectConstants.Destinations.IdentityToken);
  }
  </code></pre>
  
  <p>With AddClaims, it is only possible to add strings</p>