Moved int conversion to sub member method