how to convert a boolean array to an int array,y = x.astype(int)