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