are you trying to do this as in the picture? if so, just select all the top faces of the cylinder (i used the standard for making a poly cylinder) and move the faces in x or z. that does the job. otherwise you need to explain better what you mean, it is not clear what you did to the cube in your pic. pic shown from differenat angles: