# comboBox.selectedItem --\> to a String?

**URL:** https://forum.kirupa.com/t/combobox-selecteditem-to-a-string/268542
**Category:** flash
**Created:** [August 15, 2008, 1:02am UTC](https://forum.kirupa.com/t/combobox-selecteditem-to-a-string/268542 "2008-08-15T01:02:03Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Jerr9](https://avatars.discourse-cdn.com/v4/letter/j/258eb7/32.png) [@Jerr9](https://forum.kirupa.com/u/Jerr9)
#### Post date: [August 15, 2008, 1:02am UTC](https://forum.kirupa.com/t/combobox-selecteditem-to-a-string/268542/1 "2008-08-15T01:02:03Z")

</div>

comboBox.selectedItem() will return an Object. How can I turn that into a String?

E.g., if the DataProvider is an array–\> new Array({data: “20”, label: “twenty”)

tracing that selected item gives–\> [object Object]

but I want to get “20”. I can’t simply cast it. Using Object.toString() doesn’t help either.

Thanks.
