Hmm, you didn't tell us the units of density nor thee dimensions and units of the cuboid. But here's how you'd do it.
density = mass/volume
density · volume = mass
- density = 9.86 (units?)
- volume = (side length)3
(9.86)·(side length)3 = mass
You didn't tell us the side length of the cuboid, but just plug it into the above formula to find the mass. The catch is that the units of the side length must be the same unit of length used in the units of the density (such as meters), which you didn't tell us. The answer (mass) will be in the same units of mass used for the density such as kg).

Arthur D.
01/18/18