Changed ids parameter to values and made it so the type matches the TKey from the expression