Well since you posted nothing about your problem, I would say, figure out what values of a double you want to mean "true" and what values you want to mean "false", and then go from there.
However I would guess that you are just blanket trying to assign a double to a boolean because you didn't notice that one of them was not the same data type as the other. Go to the offending line and correct the problem.