Add spaces after the casts, e.g., format(((BooleanWritable) writable).get()));