silence type cast warnings