You need to have the same number of curves in both sections. This means you need to cut the circle into four pieces. Where you make the cuts will determine how the circle transitions to the rectangle. Also, pay attention to the which vertex on each section is the start point, or you will get a twisted extrusion.