Use typed accessor instead of memset