Boolean attributes get casted to int

Boolean values get casted to int since they are not specially treated when casting big integers.