auto convert data from database to field predefined type