typecast tinyint(2) as boolean