Hi ashraf,
Like you said, both Cint and Ctype are OK, both work. Here is my test result:
Dim i As Double = 2.0
Dim j As Integer = CInt(i)
Dim n As Integer = CType(i, Integer)
Dim m As Integer = CInt(MsgBoxStyle.Critical)
Both work fine in my local.
If you still have question, please let me know.
Best regards,
Guang-Ming Bian - MSFT
Please remember to mark the replies as answers if they help and unmark them if they provide no help