added cast integers option