removed meaningless casts, based on https://review.openbloomberg.com/D28#comment-4