FIX: Fix windows compilation

Add parenthesis around cast expression.