Jsep candidate handling.

C++-style casts please.