Kracoeus 7296

This pull request contains the code for KRACOEUS-7296.
do you need this cast?