How to convert a boolean array to an int array?

I use Scilab, and want to convert an array of booleans into an array of integers: >>> x = np.array([4, 3,...