fixed conversion script to force certain types as numbers