Revert "run "redundant type cast" inspection"

This reverts commit b7b51c32f96738aae475eb21fa3e77430f386679.