Working with conversion of types in C# is not all that
complicated. We have looked at standard casting as well as using the
"as" operator to convert between types. Keep in mind the importance
of reference types with the "as" operator, and try to only use it
when there is a high likelihood that the conversion will not work or if the
failure to convert is not an error. If the situation is unlikely to occur, then
you should cast the object and handle the exception. This way you make sure
that you are actually taking care of the error if it occurs.
Read more from this author on his blog.