add assignment before cast for constants