Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles Button1.Click
Dim iDbl As Double
Dim iInt As Integer
iDbl = 9.123
MsgBox("The value of iDbl is " & iDbl)
iInt = iDbl
'after conversion
MsgBox("The value of iInt is " & iInt)
End Sub
End Class