Great question, OP.
Is it possible to work in a bar and not drink alcohol?
Is it possible to work in a cigarette factory and not smoke?
The answer is always yes and many people manage to do that.
If your friend has a problem staying away from gambling and his casino work is leading him astray, he should find another job.