Review some default casting rules, in particular add tinyint(1) to boolean.