fix code example casting cost