change as_bool to asbool. (But it really should be named as_bool)