Fixed type casting error that was breaking compilation.