migrate id type to primitive for finders, too