[ticket/security-155] Cast the types of string values in the controller routes

SECURITY-155
[ticket/security-155] Fix spelling error in comment

SECURITY-155
Merge pull request #2841 from nickvergessen/ticket/security-155

[ticket/security-155] Cast the types of string values in the controller routes