title: How Do I Return IList<T> From ICollection<T>
body: <p>I have the following method:</p>
  
  <pre><code>    public Task&lt;IList&lt;string&gt;&gt; GetRolesAsync(AppUser user)
      {
          if(user.Roles == null)
          {
              // TODO: Load roles
          }
  
              //Not sure return syntax to return user.Roles as IList&lt;string&gt;
              return Task.FromResult&lt;List&lt;string&gt;&gt;(???);
      }
  </code></pre>
  
  <p>Where <code>user.Roles</code> are of type <code>ICollection&lt;IAppRole&gt;</code>the method above returns type of <code>IList&lt;string&gt;</code>. I'm having trouble making the conversion and then finding the proper syntax to make the return.</p>