"Dram" is a unit of volume, whereas "gram" is a unit of mass.
They can't be directly converted. If they both refer to a sample
of some substance, then the conversion depends on the density
of the substance. All we can say for sure by way of an answer is:
To change 'drams' to 'grams', replace the 'd' with 'g'.