use As<v8::Object> instead of ToObject