Simplify id conversion
Don't keep assigning to the same intermediate var