title: The operator - is undefined for the argument type(s) long, Object
body: <p>I'm working on a simple java app which calculates different request times. I'm getting the error, The operator - is undefined for the argument type(s) long, Object for</p>
  
  <pre><code>  for (int requestTime : requests) {
          new Timer().schedule(new TimerTask(){
  
              -redacted-
                  }
              }
          }, time - System.currentTimeMillis() - (long)latency - (Object)requestTime);
      }
  </code></pre>
  
  <p>I was wondering if anybody could help me solve my little problem.
  Happy new year. </p>