casting optimization parameters