Class Sample
Public Shared Sub Main()
Dim values() As Object = { False, 12.63d, #06/01/2010 6:32:15#, 16.09e-12, _
"Z"c, SByte.MinValue, Int32.MaxValue}
Dim result As String
For Each value As Object In values
result = Convert.ToString(value)
Console.WriteLine("Converted the {0} value {1} to the {2} value {3}.", _
value.GetType().Name, value, _
result.GetType().Name, result)
Next
End Sub
End Class