Make to_bool recognize 0 and 1