update cast object to long