Add explicit type cast and curly braces to appease compiler