Merge values of different types