changed strange behaviour of Bool cast