updateAsType test