Improve boolean caster