`(typ)variable` looks like a C cast, but it's only an expression in braces which evaluates to a function in command syntax (once the braces evaluate it's equivalent to `typ variable`). This matters because the proc call has a different priority compared to C casts. Compare for example cases like `(uint64_t)variable * 2` and `(uint64)variable*2`. So I think this form should be avoided because it can lead to errors.
Castings can be called in Nim just like any other proc can be called. Like @ynfle suggested this means that a C++ style casts are supported as well (`typ(variable)`), which is how I usually do it, though it's a purely stylistically question, many have suggested dot calls in this thread.