Why not just pass the enum, will that not work?