Updated conversion tool to support ids of anytype