Class casting problems.