As seen in this issue, it's not really apparent that we can use the valueOf() method to convert a class view into a pointer. I can't find any references to it in the manual, neither the info that it's being automatically converted into a pointer when using __retain(), __release() methods and such.