Optimize Array casting.
Finish ArrayOptimization