unsafeFrameCast was removed

Signed-off-by: Stefan Marr <git@stefan-marr.de>
Simplify to integer, it is all integers anyway

Signed-off-by: Stefan Marr <git@stefan-marr.de>