Explicitly cast ttls to ints before passing to java client