Say, there is a case class

```
case class MyCaseClass(a: Int, b: String)

```

and an `Option[MyCaseClass]` variable

```
val myOption: Option[MyCaseClass] = someFunctionReturnOption()

```

Now, I want to map this Option variable like this:

```
myOption map {
  case MyCaseClass(a, b) => do some thing
}

```

It seems the compiler reports error like `It needs Option[MyCaseClass], BUT I gave her MyCaseClass, bla bla..`. How to use pattern match in Optional case class ?