This just crossed my mind and there's a possibility that this scenario exists in real life
Do You Think It's A Cause Of Concern For Your Employer if he finds out that you are a compulsive gambler and you are working in a department that deals with money, do you think it's right that he transfer you to another department that has nothing to do with money?
Yes. I guess yes if you haven't any control. But, if you can't touch that money that you're handling for your employer, I guess that there aren't any issues to maintain this position.
Anyway, you should not let your employer know that you're a compulsive gambler. This could cause a loss of trust in your person, and this can puts in risk your job.