as the title states. Is there a way to determine if both datatypes are the same?

as the title states. Is there a way to determine if both datatypes are the same?

var.GetType() method.

Dim no As Integer
 Dim no1 As Double
        

 If no.GetType().Equals(no1.GetType()) Then
   '
   ' 
 End If