Review comments implemented. Added another sample for testing
getAsNumber with exhaustive span.