nit: space after cast for both lines.