I was surprised that I needed some casts in #5420 to pass #2885 tests. Need to see if any other vector algorithms need similar casts.