The shortstring library allows for efficient conversion of short enough strings into integers or longs and back.