More specific type checking when setting value for item fields