Fix typedef referencing another typedef issue.

Change-Id: Ifbef6c16732e6867079a2767b3933fe164bdc37a
diff --git a/compiler/base/datamodel/src/main/java/org/onosproject/yang/compiler/datamodel/utils/builtindatatype/ObjectProvider.java b/compiler/base/datamodel/src/main/java/org/onosproject/yang/compiler/datamodel/utils/builtindatatype/ObjectProvider.java
index f7bc8d1..72221c4 100644
--- a/compiler/base/datamodel/src/main/java/org/onosproject/yang/compiler/datamodel/utils/builtindatatype/ObjectProvider.java
+++ b/compiler/base/datamodel/src/main/java/org/onosproject/yang/compiler/datamodel/utils/builtindatatype/ObjectProvider.java
@@ -100,8 +100,7 @@
                 YangType rt = ((YangDerivedInfo) typeInfo
                         .getDataTypeExtendedInfo()).getReferredTypeDef()
                         .getTypeList().get(0);
-                return getObject(rt, v, ((YangDerivedInfo)
-                        typeInfo.getDataTypeExtendedInfo()).getEffectiveBuiltInType());
+                return getObject(rt, v, rt.getDataType());
             case UNION:
                 return parseUnionTypeInfo(typeInfo, v);
             default: