You could try casting it to SpenObjectText
and then extracting CharSequence
with getText()
method:
SpenObjectBase base = //.. your object containing text data
if (base instanceof SpenObjectText) {
SpenObjectText text = (SpenObjectText) base;
mEditText.setText(text.getText());
}