Fix pipeline config get ClassCastException

Fixes #831