Casting Entity to Player or Agent Fails

Has this been fixed yet?