fixed nullables when default value null
renamed cast/recast to store/restore
renamed cast/recast to store/restore