LOW/ Prevent ClassCastException on Warning logging message