cast ids to string