Fixed errors with Vala.Expression to int conversion