suppressing cast warnings