1 gram = 1 cubic cm (roughly) so there are a thousand in a liter.
1 milligram is 1/1000th of a gram - so 1 milligram = 1 ppm in a liter.
the thing is you can't compare just the toxicity - you have to factor in things like what percentage is retained in the body - where it is deposited in the body - etc.