One way to do this is to select the edge with the slide edge loop tool then hold down the v key and middle mouse drag across one of the top vertices of the cylinder and the edge will slide to the vertex height.