Fixed casts for arrays