Wrong variable in formatValueForAttribute 

There seems to be a bug in the DB2 and PostgreSQL plugin where the wrong variable is casted. At that point _obj_ has been checked for type of _Number_ and thus cannot be a _String_ whereas _convertedObj_ is successfully identified as one.