title: Converting IO Int to Int
body: <p>I've created a combobox from converting a <code>xmlWidget</code> to a <code>comboBox</code> with the function <code>castTocomboBox</code> and now I want to get the text or the index of the active item. The problem is that if I use the <code>comboBoxGetActive</code> function it returns an <code>IO Int</code> result and I need to know how can I obtain the <code>Int</code> value. I tried to read about monads so I could understand what one could do in a situation like this but I don't seem to understand. I appreciate all the help I can get. I should probably mention that I use <code>Glade</code> and <code>gtk2hs</code>.</p>