class LongValueToSignedIntValue implements TranslateFunction<LongValue, IntValue> {

	@Override
	public IntValue translate(LongValue value, IntValue reuse)
			throws Exception {
		if (reuse == null) {
			reuse = new IntValue();
		}

		reuse.setValue(MathUtils.checkedDownCast(value.getValue()));

		return reuse;
	}

}