> int x = 0; > > if (x is System.String) > MessageBox.Show("this is a string"); > > if (x is System.Int32) > MessageBox.Show("this is an int"); > >Thanks, this is exactly what I was looking for. But, that syntax cannot be supported as is in VB.NET. I would say a small adjustment is required after x is or something like that.