Fixing fcast

Trying out fix for fcast segfault