You are creating a custom dictionary. Which code segment makes sure that the dictionary is type safe
Class MyDictionary Implements Dictionary(Of String, String)
Class MyDictionary Inherits HashTable
Class MyDictionary Implements IDictionary
Class MyDictionary End Class Dim t As New Dictionary(Of String, String) Dim dict As MyDictionary = CType(t, MyDictionary)