Cast config uint to time.Duration