Fix bool casts