Broken out and exposed the parameter casting for code readability and ease of access.