Added returncode for Object type out of enum range.