Ensure volume.size is always int