Handle primitive data types properly