positiveIntOrNull

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