EncoderFollower with encoders readings from SparkMax

So it seems that WPI has updated Screensteps with how to follow paths, but the configureEncoder() method requires an encoder.get() value that is an integer. However, we are using NEOs and the getPosition() for the encoders on them return a double. Does anyone know if these values represent different things or how to solve this issue?

Doubles are pretty much just Integers that also have decimal places. To get configureEncoder() to accept the double from the NEO’s getPosition() function, you just need to turn the double into an integer; you can do that by rounding it off then casting it to an int, like so:

configureEncoder((int) Math.round(my_neo.getPosition()), other_args…);