I am using .toString to return a string representation of an object, i.e.
jcb.engineMove(move.toString());
will produce e2e4.
What
the use of Object#toString should be limited to debugging.
Object#toString