Convert enum to sram_type_size to avoid warning