Save Land/Sea Mask file

Hi, I applied the Land/Sea mask successfully to an SLC Sentinel-1 image (mask out the land). Over Land, I got NaN value. I would like to assign Value=0 to land area. Is it possible? Is it possible to export the mask file created? Thanks in advance.