Made cast for interface instead of gordianclass.