Convert object id to hex string when used as key
convert atom to object id