diff --git a/lib/private/BackgroundJob/JobList.php b/lib/private/BackgroundJob/JobList.php
index 12da0c4da10c2f06caf92e04d1b71debe63cc869..23695bfbe03a66a931bbba672f5b797ba316f379 100644
--- a/lib/private/BackgroundJob/JobList.php
+++ b/lib/private/BackgroundJob/JobList.php
@@ -276,7 +276,7 @@ class JobList implements IJobList {
 			}
 
 			$job->setId((int) $row['id']);
-			$job->setLastRun($row['last_run']);
+			$job->setLastRun((int) $row['last_run']);
 			$job->setArgument(json_decode($row['argument'], true));
 			return $job;
 		} catch (AutoloadNotAllowedException $e) {