diff --git a/android/src/main/java/com/wix/rnnewrelic/RNUtils.java b/android/src/main/java/com/wix/rnnewrelic/RNUtils.java index 5c2b546..de36866 100644 --- a/android/src/main/java/com/wix/rnnewrelic/RNUtils.java +++ b/android/src/main/java/com/wix/rnnewrelic/RNUtils.java @@ -40,7 +40,7 @@ public static HashMap toHashMap(ReadableNativeMap readableNative hashMap.put(key, toHashMap(readableNativeMap.getMap(key))); break; case Array: - hashMap.put(key, toArrayList(readableNativeMap.getArray(key))); + hashMap.put(key, toArrayList((ReadableNativeArray)readableNativeMap.getArray(key))); break; default: throw new IllegalArgumentException("Could not convert object with key: " + key + "."); @@ -75,7 +75,7 @@ public static ArrayList toArrayList(ReadableNativeArray readableNativeAr arrayList.add(toHashMap(readableNativeArray.getMap(i))); break; case Array: - arrayList.add(toArrayList(readableNativeArray.getArray(i))); + arrayList.add(toArrayList((ReadableNativeArray)readableNativeArray.getArray(i))); break; default: throw new IllegalArgumentException("Could not convert object at index: " + i + ".");