asKey

fun asKey(): String

Casts this PathElement as a Key and retrieves its kotlin.String value. Throws an exception if the PathElement is not a Key.