convertTypes for null,undefined,true,false and numeric data