cast warnings