Cast ids to string