Fixes #279 - Remove unnecessary const cast