*/
public static <T> T convertToMandatoryType(Exchange exchange, Class<T> type, Object value)
throws InvalidTypeException {
T answer = convertToType(exchange, type, value);
if (answer == null) {
throw new InvalidTypeException(exchange, value, type);
}
return answer;
}