Boolean cast fixes (we want booleans)