Value checking and conversion is still necessary
IDEA: check attribute type before setting - convert the new value accordingly