Obama's father was a faithful Muslim. According the laws of Islam, Barak Obama is a Muslim. There is no way he can get out of that.
When the situation suits him, as in travels to Muslim countries or a speech to Black Muslims, he makes sure they feel he is one of them. He is a hypocrite, but most people are to some extent.