toNegativeIntOrThrow

@SinceKotools(project = Project.Types, version = "3.2", stability = StabilityLevel.Alpha)
fun Int.toNegativeIntOrThrow(): NegativeInt

Returns this value as a NegativeInt, or throws an IllegalArgumentException if this value is strictly positive.