cast array of number to boolean numpy code example Example: integer to boolean numpy array > 0 #will give True if 1 and false if zero