Fix invalid casting of boolean values