Removed redundant "as"-cast