Type casting attribute values at assign time.