treat boolean type as int1.