Change type to SparseArray