checkedStringValue

fun checkedStringValue(item: DataItem): String

Accepts a DataItem, attempts to cast it to a UnicodeString, then returns the value. Throws IllegalArgumentException if the DataItem is not a UnicodeString.