Beginner here*
How do I smoothly connect a cube with a cylinder?
Create this shape (subdivide a cube, bevel the edges, move up the top vertices):
Extrude up the top edge, keep the top edge selected, enable the LoopTools addon, right click and LoopTools > Circle:
Add new edge loops to round the neck, or to sharpen some edges: