I have a v8 method which returns type v8::Local<v8::Data> , i want to convert this to type v8::Local<v8::Value> , Value is a Child class of Data ref
I tried using Data class methods like isValue , isModule etc to try to convert Data into its child class but it does not resolve to any
if(modReq->IsValue()) {
std::cout<<"modReq is a valuen";
Local<Value> ans = modReq.As<Value>();
} else { ... }
Is there any other way to cast this method?