Initial implementation of essync tool

... then you wouldn't need the type conversion here.