Don't convert object_error's enum to and from int.