Added ffi_cast to locals.