Cosmi 'optimistic' against Inter