Added explicit type conversion to avoid warning