toPositiveIntOrNull

Returns this value as a PositiveInt, or returns null if this value is strictly negative.