Changed the C style cast into static_cast.
Ammended comment.