The error you've received there tells you that with Option Strict On
on you can't do implicit casting from Object
to String
or ListViewItem
. So you need to do explicit casting instead.
For Each itm As ListViewItem In Me.lvCustomers
If CDbl(DirectCast(itm.Tag, String) <> customer.Id Then Me.lvMerges.Items.Add(DirectCast(itm.Clone, ListViewItem))
Next
Does that work?