animationSpeed works with an integer, but not a string

I tried to change the animationSpeed using animationSpeed: '500' but it doesn't work. I used animationSpeed: 500 and it works just fine. I think it's expecting the same type as 'hoverIntentTimeout'?