Fix int to bool casting