Cast Parameters

Cast paramenters to int  Issue #4563