How To Check If Value Is Long In Java. getTime(); long start;. findAllCasesId() has type List<Long&