You don't have to call `to_i` here, ActiveRecord will call it for you deep inside its guts.