added NaN test for as_bool