Added polymorphic conversion of alert types (pending optimization).