Wrong cast to satisfy type checking of method dispatch table when compiling.