Changed long to Long for Object type conversion to long.