Fixed issue where data types were improperly ensured during extraction