From ex-communist to Islamic scholar