Remove unnecessary Array casting