Handle as_int error with a fallback gracefully

as_int was previously not fallback-compatible
as_double and as_money too