WIP: correct compiler errors for samplingStrategy, static cast is used