Return array instead of casting to array