Easy way to convert long to short, vice versa?

Is there an easy way to convert a long position to a short position ?

more rigorously speaking, i would like to find a way to reverse the position. Long -> short, short -> long.