Removal of reinterpret_cast

AddOutputChat moved to a more sensible location. This caused crashes.