redundant cast removed