value checking on casts to json.Number