How to dynamically cast a stored Record Type name/UUID/string to a Record Type object in Appian?
We have a database table where we store a reference to a Record Type (it could be the Record Type name, UUID, or a string like "()"). The requirement is to convert this stored value into an actual Record Type object at runtime so that it can be used in expressions or interfaces.
For example:
cast(
272,
" 'recordType!{b12345-12345-12345-12345-c12345}ABC' "
)
Is there any built-in function or best practice in Appian to achieve this dynamic casting?

