if(sourceTypeName.equals(targetTypeName)) {
return null;
}
//Else see if an implicit conversion is possible.
if(!DataTypeManager.isImplicitConversion(sourceTypeName, targetTypeName)){
throw new InvalidFunctionException();
}
//Else no conversion is available and the current method is not a valid match
final FunctionDescriptor fd = findTypedConversionFunction(sourceType, targetType);
if(fd == null) {
throw new InvalidFunctionException();
}
return fd;
}