diff --git a/projects/voxelization/src/ShadowMapping.cpp b/projects/voxelization/src/ShadowMapping.cpp
index b50a5f98b55a9b9260c374296a1c24aab597fd72..1e58b3c8f135f01e7467e4f8bc6aae4d1d8b1f40 100644
--- a/projects/voxelization/src/ShadowMapping.cpp
+++ b/projects/voxelization/src/ShadowMapping.cpp
@@ -260,8 +260,8 @@ void ShadowMapping::recordShadowMapRendering(
 
 	// depth to moments
 	uint32_t dispatchCount[3];
-	dispatchCount[0] = (uint32_t)std::ceilf(shadowMapResolution / 8.f);
-	dispatchCount[1] = (uint32_t)std::ceilf(shadowMapResolution / 8.f);
+	dispatchCount[0] = static_cast<uint32_t>(std::ceil(shadowMapResolution / 8.f));
+	dispatchCount[1] = static_cast<uint32_t>(std::ceil(shadowMapResolution / 8.f));
 	dispatchCount[2] = 1;
 
 	const uint32_t msaaSampleCount = msaaToSampleCount(msaa);