Swift provides a special method called __conversion that allows you to implicitly convert your type to another type. I would like to be able to define a method that
It turns out that __conversion is a private method and will be removed by the end of the beta so this will definitely not be possible once Swift is released.