explicitly cast return value in Stk::frames() to match return type

Silences LLVM compiler warnings about losing integer precision.