I\'m trying to select object from listview and cast to my custom object like this
MyObject foo = (MyObject)MyListView.SelectedItems[0];
but thi
I think you need to create your object differently, not casting in this way.
If you retrieve the text in the item, then create your object using that text.
string txt = MyListView.SelectedItems[0].Text;
MyObject foo = new MyObject(txt);
Then use your object in the usual way. It is difficult to tell any more about what you need without more details.