The Convert Mask to Image node can be used to convert a mask to a grey scale image.
mask
The mask to be converted to an image.
IMAGE
The grey scale image from the mask.
example usage text with workflow image