fun getTypeName(type: ???): String { when(type) { is String -> return "String" is Int -> return "Integer" ... } }