Convert existing id to string while checking for oid assignment