Blending a square and a circle

I think the most important here are the curves that connect these 2 shapes - where the crv ends touch the 2 shapes. After you set up curves ready to make 4 side surfaces, you will get your result.