ensure type before checking if changed in model when setting a value