correct type coversion error (from int to bool)