Cast timestamp to an integer before passing it to Instant::__construct