small masked array performance enhancement

remove unnecessary typecast and seterr operations
Submit a PR and I'll put it in.