Created all alert cast methods via macro.