Removed a bunch of unnecessary casts to a dense array