Core/Misc: replace (Player*) casts with ToPlayer()
Merge pull request #10319 from joschiwald/casts

Core/Misc: replace (Player*) casts with ToPlayer()