Cleanup casting of FX_Alloc() return values.