asPort

fun asPort(): Int

Casts this PortSpecification as a Port and retrieves its kotlin.Int value. Throws an exception if the PortSpecification is not a Port.