Fixed issues with binary and Boolean conversions.