How to get the value of a BlockAttributeText instance?

See this thread, maybe it’s what you are looking for: