Fix critical for silent cast

Fixes bug 696110