This is my sampler:
object[] input = new object[] {1, "", 2.3, 5, 8 }; int sum = 0; foreach (var item in input) { if (item is int count) sum