Shape and size should not matter if the mass of the object is the same to what and it still floats. If it sinks, the volume also has to be the same again to what?
Volume of the fluid? As in the volume of the container in which you are submerging your object? That does not matter.