coerce strings to same type for comparison in Array#intersection