11,570 questions
Assuming this is for a windows forms combobox. You could try casting it to the object type in the combobox. I assume you added integers like this to the combobox.
comboBox1.Items.Add(1);
comboBox1.Items.Add(2);
comboBox1.Items.Add(3);
comboBox1.Items.Add(4);
comboBox1.Items.Add(5);
comboBox1.Items.Add(6);
comboBox1.Items.Add(7);
comboBox1.Items.Add(8);
this.Load += Form1_Load;
}
private void Form1_Load(object sender, EventArgs e)
{
var itm = comboBox1.Items.Cast<int>().Where(i => i == 1);
}