replace Bool type by bool type