You can just using Project methond on GeometryEngine class. This is the correct way to do spatail reference convertion. For instance, if your spatial reference of map is WGS1984 WebMercator(wkid3857) and you want to convert the coords to latitude and longitude, just set the in sr=3857 and out sr=4326(WGS1984).