     assert(isCocoaDictionary(d))
     let originalCapacity = d.count
     assert(d.count == 3)
-    assert(d[TestObjCKeyTy(10)]!.value == 1010)
+    assert((d[TestObjCKeyTy(10)] as! TestObjCValueTy).value == 1010)
 
     d.removeAll()
     assert(identity1 != unsafeBitCast(d, to: Int.self))

  do {
    var kv = d[d.index(forKey: TestObjCKeyTy(10))!]
    assert(kv.0 == TestObjCKeyTy(10))
    assert(kv.1.value == 1010)
  }
}



  let foundIndex1 = d.index(forKey: TestObjCKeyTy(10))!
  assert(d[foundIndex1].0 == TestObjCKeyTy(10))
  assert((d[foundIndex1].1 as! TestObjCValueTy).value == 1010)
  assert(identity1 == unsafeBitCast(d, to: Int.self))

  let removedElement = d.remove(at: foundIndex1)
  assert(identity1 != unsafeBitCast(d, to: Int.self))
  assert(isNativeDictionary(d))
  assert(removedElement.0 == TestObjCKeyTy(10))
  assert((removedElement.1 as! TestObjCValueTy).value == 1010)
  assert(d.count == 2)
  assert(d.index(forKey: TestObjCKeyTy(10)) == nil)
}
