change primitive data type to object