[nr] Implement value coercion to the attr's type on set