Fixed casting issue..

Silly Dynamic arrays...