asPortOrNull

Casts this PortSpecification as a Port and retrieves its kotlin.Int value. Returns null if the PortSpecification is not a Port.