@SuppressWarnings("unchecked") public <T> T convert(Object value, ResolvableType type, Annotation... annotations) { if (value == null) { return null; } return (T) this.conversionService.convert(value, TypeDescriptor.forObject(value), new ResolvableTypeDescriptor(type, annotations)); }
public boolean canConvert(Object value, ResolvableType type, Annotation... annotations) { return this.conversionService.canConvert(TypeDescriptor.forObject(value), new ResolvableTypeDescriptor(type, annotations)); }