[NUCJAVAEIGHT-17] Add cast to integer so we ignore nanos in getSecond