Cast is required to use return value of malloc().