route: Adjust cost to integer before registering

refs: #1907

Change-Id: I471cd2eafb65a8458b4f527a3c3d7ea6682f5627