made type conversion slightly more readable