Fix for compiler cast warning.