Read mask in using ivec (integer type).