Use to_value where applicable in Error