Remove array casting