change compare value type from Object to property type