Added cast operator to gc_ptr