Adding support for transforming boolean values between different types