small masked array performance enhancement

remove unnecessary typecast and seterr operations
See gh-4822.