Fixing implicit bool cast warnings in vs.