Converting descriptors dtype to bool