Consider the following code:
dim i64 as Int64 = 1234567 dim i32 as int32 = 7654321 i32 = Int32(i64) // cast i64 = Int64(i32) // cast i32 = Ctype(i64, Int32) // convert i64 = Ctype(i32, Int64) // convert
It all seems reasonable enough. Not useful, but seems reasonable. Only one problem. It won’t compile. Why not? The two casts to int32 and int64 will fail. Now why is that?
Comments closed