Cast from ObjectWrap