String -> integer for id type