```ruby
values = value.to_a.map { |x| x.is_a?(Base) ? x.id : x }
```

I thinking why we need to call `to_a` since the value is an Array.