Replace the deprecated version of DataTypeAdapter by the good one