Corrected type cast of pointerLayer