Tests for cast float/double and mask