The curved lower or upper side of the cuboid certainly corresponds to a piece of a spherical surface. If you then want to fit a cylinder or lathe exactly, you need the section curve.
Something like that I did there:
Triangulation sphere with holes
Inner Geometry (Triangulation)
However, this is a bit more complex.