Encode/Decode Varint and Decimal type numbers to easily store them in cassandra.