I don't think there is any native function, but a ...
# suitescript
n
I don't think there is any native function, but a neater solution than to do a lookup would be to have a custom column that would have the type stored already.