Blueprint Script Component Broken?

I do however think I might have found another bug. It seems the part of the code next to event begin play is broken and the cast doesn’t actually fail (As I have tried to check this with a print string) But it seems the player reference is always invalid when set through the begin play.