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