neo-mat/arcemu — comment on commit ff7807127d6662c1170f1ff632cb21598f2c668d
File: src/arcemu-world/SpellProc_Shaman.cpp line 53
By jackpoz:

it's usually better to use the lowest possible class so it will work with more casters. If that's not possible, than using the method that already returns the right reference type is better than TO( GetObject() ) as it's type safe, while with GetObject() you have to check if it's of the Type you want before casting it.

Listen to some music when stuck in the traffic instead of thinking about ArcEmu ;)