Casting to GameHUD in this case is redundant, since you already have a reference to GameHUDWidget. It looks like in 4.5.1, that step is no longer necessary (and no longer possible). Instead, it should look like this:
If you are experiencing crashes, you should open a new post in Bug Reports section with your crash log so we can take a look.
Hope that helps!