Adding necessary cast 

This time without changing formatting