dataToCartesianVector now considers the mask. If the referring
value is false, the input value is not taken over.