solve two casting warnings