cast id to a string

added a .to_s to enforce string representation of the object's id.