np.bool => 8 bytes
np.uint8 => 8 bytes

=> astype can be replaced with view(np.bool)