Type Mismatch Between Read And Write Methods