Cast varint to number