title: Conversion between IEnumerable to IList (Dapper return result)
body: <p>There is signature of <code>UserManager</code> method (ASP .NET Identity Core default implementation):</p>
  
  <pre><code>public Task&lt;IList&lt;string&gt;&gt; GetRolesAsync(User user) {
      const string query = @"
                  select r.[Name]
                    from [UserRoles] ur
               left join [Roles] r on r.RoleId = ur.RoleId
                   where ur.UserId = @userId;
      ";
  
      return Task.Factory.StartNew(() =&gt; {
          using (SqlConnection connection = new SqlConnection(_connectionString))
              return connection.Query&lt;string&gt;(query, new { userId = user.UserId });
      });
  }
  </code></pre>
  
  <p>But unfortunately <code>Dapper.Query&lt;T&gt;</code> returns <code>IEnumerable&lt;T&gt;</code>.</p>
  
  <p>Is it possible to return <code>IList&lt;T&gt;</code> or i have to make conversion myself?</p>