Enquiry

What is the Islam's take on transgenders?

Salaams everyone. I was recently watching a channel 4 documentary on transgenders in Pakistan and it got me wondering what Islam said on the issue of transgenders and by that I mean people born with both sets of sexual organs and hormones not people with gender issues and sex changes.

In Islam are these transgender people seen as haram, outcasts or as a third gender because at the end of the day they too are creations of Allah (SWA). Are they allowed to marry, do Hajj and Umrah? Are they allowed to fast and read namaz?

Your help in this conundrum of mine would be greatly appreciated.

The Seeker