let the attribute write cast the values