Gets this value as a number primitive (Int, Long or Double).
Throws an exception if this value doesn't represent a number.