Sanjib Biswas <(E-Mail Removed)> wrote:
> You should be using Convert class to do the type conversion as it uses
> implicit conversions. Where as type casting a value, called explicit or
> force conversion, there may be a data loss.
That's a massive overgeneralisation. If the type of value is already
numeric (or a boxed double) then a cast will do just as well as a call
to Convert (which can lead to exactly the same kind of data loss).
Convert is useful for parsing, or for using custom conversions.
--
Jon Skeet - <(E-Mail Removed)>
http://www.pobox.com/~skeet Blog:
http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too