Add method assertNumber.