MySQLi データベース クエリの結果の単純な比較関数を使用しようとしていますが、次のコード スニペットで「stdClass を int に変換できませんでした」というメッセージが引き続き表示されます。
$stmt = mysqli_prepare($this->connection, "SELECT access_user_id, failed_login_count FROM $this->accesstable where username=?");
            $this->throwExceptionOnError();
            mysqli_stmt_bind_param($stmt, 's', $trimmedUsername);       
            $this->throwExceptionOnError();
            mysqli_stmt_execute($stmt);
            $this->throwExceptionOnError();
            mysqli_stmt_bind_result($stmt, $user_id->access_user_id, $failed_login_count->failed_login_count);
            $failed_login_count = (int)$failed_login_count;
            if(mysqli_stmt_fetch($stmt)) {
                if($failed_login_count < 10) {
エラーをスローする最後の行があります...何が間違っていますか?