checking if type is System.Object but with a primitive value on deserialization