diff --git a/MeshToolsLib/MeshGenerators/VoxelGridFromMesh.cpp b/MeshToolsLib/MeshGenerators/VoxelGridFromMesh.cpp
index c2c9946edc8a9c05f3a93e16d7161f1cdb4730a0..1c5911d578e056a1901de9f416008a6c9912c912 100644
--- a/MeshToolsLib/MeshGenerators/VoxelGridFromMesh.cpp
+++ b/MeshToolsLib/MeshGenerators/VoxelGridFromMesh.cpp
@@ -78,7 +78,7 @@ bool removeUnusedGridCells(vtkSmartPointer<vtkUnstructuredGrid> const& mesh,
 template <typename T, typename VTK_TYPE>
 void mapArray(MeshLib::Mesh& grid, VTK_TYPE vtk_arr, std::string const& name)
 {
-    MeshLib::PropertyVector<int> const& cell_ids =
+    auto const& cell_ids =
         *grid.getProperties().getPropertyVector<int>(
             cell_id_name, MeshLib::MeshItemType::Cell, 1);
     std::vector<T>& arr = *grid.getProperties().createNewPropertyVector<T>(