Is this what you mean? A Box to Tube Loft.
Make the top a solid cylinder and the bottom a solid block, use the Loft tool, and then use the Shell tool to hollow it out.