Removed redundant operation in camera casting.