Add note for checking class before type casting