Docs (4.0.0)
class Assertion method

asNumber

Returns a new assertion for the number representation of the current value.

asNumber(): Assertion<unknown>

Note
The current value is converted using the + operator (i.e. +value).

Related