Function Not Being Called

The player character is supposed to call a function on the gun but is doesn’t? I’ve done some testing and it seems to be a problem with the casting but I don’t know what.