asResource

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