Use asNumber() and isNumber() interface.