intern: Use UP_CAST macro instad of open-coding it.