Please solve the programming task below using a self-contained code snippet in a markdown code block.

Given a string s and a character c that occurs in s, return an array of integers answer where answer.length == s.length and answer[i] is the distance from index i to the closest occurrence of character c in s.
The distance between two indices i and j is abs(i - j), where abs is the absolute value function.
 
Please complete the following python code precisely:
```python
class Solution:
    def shortestToChar(self, s: str, c: str) -> List[int]:
```