support booleans as tinyint (0/1)