Is it safe to eat moldy cheese if you slice off the edges?
I think it would depend on the cheese.


For a reasonably hard cheese, like cheddar, I have done it, and never gotten sick (your results may vary).
If it's pre-grated, then I would not touch it anymore.
For a softer cheese, like a brie, I would not risk it.