Hi,
They are two different concepts, the first is a cast , for this to work the
casted type should be convertible to int , no all of the types are.
The second are a series of method with different signatures, each overloaded
version perform the needed conversion.
IMO a cast should be faster than calling Convert.XXX but I cannot garantee
it, it does depend of the typed being converted.
cheers,
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"charliewest" <(E-Mail Removed)> wrote in message
news:B34B0162-6772-4D9A-A952-(E-Mail Removed)...
> Is there any advantage, or a recommended preference, between using (int)
> or
> Convert.ToInt32() to convert numeric types to System.Integer32 ?
>
> Thanks,
|