I just ran across another way to cast objects in C#. I have always used (CastType)variable
. I just noticed some code using variable as CastType
. The latter reminds me of VB.
Is there a difference between the two methods of casting other than syntax?