Iterate all types of hirerarchy type inside union