I think both will cool down the same time since they both have the same temperature and the diameter of the circle and the side of the cube are the same and in the same space of a surrounding temperature.
So the cooling speed is likely to run at the same rate.