Removing C style casts for this file