0
kicks
Casting operators - Ran Wahle's blog
Many times we’ve encountered the need to cast a variable
from one type to another. On many occasions we couldn’t
and therefore had to write our own conversion methods. Many
of these occasions the conversion methods involved our own classes.
In this post I will demonstrate the casting operators that will allow
as to have an implicit or explicit conversions between our types.