I have tried: Sub getList As List Return mapX.Keys End Sub but Keys are defined as IterableList and can not be cast to List :(