Fix uninitialized @type_casting variable