As you indicated in the comments that the type of your SelectedItem is DataRowView
you have no cast available. Instead build your type ComboBoxItem
manually like so:
var rowView = (DataRowView) comboBoxDriverShift1.SelectedItem; // cast
ComboBoxItem shift1Driver = new ComboBoxItem {
Text = rowView[1].ToString(),
Value = rowView[0]
};
comboBoxAccountsDriverName.Items.Add(shift1Driver);
Or a little bit more condensed:
comboBoxAccountsDriverName.Items.Add(new ComboBoxItem {
Text = ((DataRowView) comboBoxDriverShift1.SelectedItem)[1].ToString(),
Value = ((DataRowView) comboBoxDriverShift1.SelectedItem)[0]
});