How do I cast from a Value* to a ConstantDataArray* on LLDB command prompt?

I tried this, it it doesn’t work.

(lldb) expr (int8_t) cast(v)->isString()
error: use of undeclared identifier ‘cast’
error: ‘ConstantDataArray’ does not refer to a value
error: no member named ‘isString’ in ‘llvm::Value’
note: declared here

Thanks for any help.
Richard Catlin

You need all namespaces to be qualified:

(lldb) expr (int8_t) llvm::cast<llvm::ConstantDataArray>(v)->isString()