There are a few functions like np.asarray() function or the pd.Series.astype() method through which you can convert the array that you have masked in a boolean format.