[RDY] Convert some values into bools

Not a very exciting change. 
I actually don't really understand why the casts are necessary for (what appears to be) plain pointer comparisons like `(bool *)varp == &curbuf->b_changed`